﻿@helper GetHtml(int index, int size, int total, string type = "navTab")
    {
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select name="size" onchange="@(type)PageBreak({numPerPage:this.value})">
                <option value="20" @(size == 20 ? "selected='selected'" : string.Empty)>20</option>
                <option value="50" @(size == 50 ? "selected='selected'" : string.Empty)>50</option>
                <option value="100" @(size == 100 ? "selected='selected'" : string.Empty)>100</option>
                <option value="200" @(size == 200 ? "selected='selected'" : string.Empty)>200</option>
            </select>
            <span>条，共 @total 条</span>
        </div>
        <div class="pagination" targettype="@type" totalcount="@total" numperpage="@size" pagenumshown="10"
                currentpage="@index">
        </div>
    </div>
}
